/* Version 0.01 2012.06.27  */

#include "displaytext.h"

DisplayText::DisplayText(float _x, float _y, LPTSTR _text)
:Displayable(_x, _y, 10, 10), text(_text), type(0)
{

}

DisplayText::DisplayText(float _x, float _y, NAME _text)
:Displayable(_x, _y, 10, 10), text2(_text), type(1)
{

}

void DisplayText::draw(HDC hdc)
{
	if(type == 0)
		TextOut(hdc, x, y, text.c_str(), text.size());
	else if(type ==1)
		TextOutA(hdc, x, y, text2, strlen(text2));
}